package b1.mobile.blackberry.entity;

import org.json.me.JSONObject;


/**
 * @author xiaoyu
 * <pre>
 * <b>JSON for List</b> 
 * {
 * 	"ItemCode": 
 * 	"ItemName":
 * }
 * 
 * <b>JSON for Detail</b>
 * {
 * 	"ItemCode":
 * 	"ItemName":
 * 	"Unit Price":
 *  "In Stock Qty":
 *  "Shipping Type":
 *  "Manufacturer":
 *  "UserText":
 *  "PictureName":
 * }
 * </pre>
 */
public class StockEntity extends GenericEntity {
	public static String JK_ITEMCODE = "ItemCode";
	public static String JK_ITEMNAME = "ItemName";
	
	public static String JK_UNITPRICE = "Unit Price";
	public static String JK_STOCKQTY = "In Stock Qty";
	public static String JK_SHIPTYPE = "Shipping Type";
	public static String JK_MANU = "Manufacturer";
	public static String JK_USERTEXT = "UserText";
	public static String JK_PICNAME = "PictureName";
	
	public StockEntity(JSONObject json) {
		super(json);
	}

	public String getItemCode() {
		return super.getStringProperty(JK_ITEMCODE);
	}
	
	public String getItemName(){
		return super.getStringProperty(JK_ITEMNAME);
	}

	public int getMoretag() {
		return 0;
	}
}
